package br.com.empresa.view;

import java.awt.Color;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
import javax.swing.border.EmptyBorder;

public class MenuSistemaGUI extends JFrame {

	private JPanel contentPane;

	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					LoginUsuarioGUI frame = new LoginUsuarioGUI();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public MenuSistemaGUI() {
		setTitle("Betha Sistemas");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 287, 266);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);

		JPanel panel = new JPanel();
		panel.setBackground(Color.WHITE);
		panel.setBounds(0, 0, 271, 227);
		contentPane.add(panel);
		panel.setLayout(null);

		JPanel panel_1 = new JPanel();
		panel_1.setBackground(Color.DARK_GRAY);
		panel_1.setBounds(0, 0, 530, 46);
		panel.add(panel_1);
		panel_1.setLayout(null);

		JLabel lblNewLabel = new JLabel("Menu do Sistema");
		lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
		lblNewLabel.setBounds(10, 11, 236, 20);
		lblNewLabel.setForeground(Color.WHITE);
		lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 16));
		panel_1.add(lblNewLabel);

		JPanel panel_2 = new JPanel();
		panel_2.setBackground(Color.DARK_GRAY);
		panel_2.setBounds(0, 213, 270, 21);
		panel.add(panel_2);
		panel_2.setLayout(null);

		JLabel lblDesenvolvido = new JLabel(
				"Desenvolvido por Daniel Pl\u00E1cido");
		lblDesenvolvido.setHorizontalAlignment(SwingConstants.RIGHT);
		lblDesenvolvido.setForeground(Color.WHITE);
		lblDesenvolvido.setBounds(0, 0, 270, 14);
		panel_2.add(lblDesenvolvido);

		JButton btnLimpar = new JButton("Usu\u00E1rios");
		btnLimpar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				dispose();
				ListagemUsuarioGUI gui = new ListagemUsuarioGUI();
				gui.setVisible(true);
			}
		});
		btnLimpar.setBounds(78, 57, 119, 23);
		panel.add(btnLimpar);

		JButton btnFornecedores = new JButton("Fornecedores");
		btnFornecedores.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				dispose();
				ListagemFornecedorGUI gui = new ListagemFornecedorGUI();
				gui.setVisible(true);
			}
		});
		btnFornecedores.setBounds(78, 91, 119, 23);
		panel.add(btnFornecedores);

		JButton btnSair = new JButton("Sair");
		btnSair.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				dispose();
			}
		});
		btnSair.setBounds(78, 125, 119, 23);
		panel.add(btnSair);
	}
}
